package com.ch.mapdemo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ch.mapdemo.entity.MapDemo;
import com.ch.mapdemo.entity.MapDemoExample;
import com.ch.mapdemo.mapper.MapDemoMapper;
import com.ch.mapdemo.mapper.UserMapper;
import com.ch.mapdemo.service.MapDemoService;
@Service
public class MapDemoServiceImpl implements MapDemoService{
	

	@Autowired
	private MapDemoMapper mapDemoMapper;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		
		return mapDemoMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insertSelective(MapDemo record) {
		
		return mapDemoMapper.insertSelective(record);
	}

	@Override
	public List<MapDemo> selectByExample(MapDemoExample example) {
		
		return mapDemoMapper.selectByExample(example);
	}

	@Override
	public MapDemo selectByPrimaryKey(Integer id) {
		
		return mapDemoMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(MapDemo record) {
		
		return mapDemoMapper.updateByPrimaryKeySelective(record);
	}

}
